class Rating < ActiveRecord::Base
    belongs_to :recipe

    validates_presence_of(:rating, :recipe_id, :user_id)

    validates_uniqueness_of :user_id, :scope => [:recipe_id]
    
end
